<!DOCTYPE html>
<html>
<head>
	<title>
		remote file access test
	</title>
</head>
<body>
	<div id="img"></div>
	<script type="text/javascript" language="javascript">
		var os = require('os');
		var img = document.createElement("img");
		if (os.platform() == "win32")
			img.setAttribute("src", "file://c:/star.jpg");
		else 
			img.setAttribute('src', "file:///tmp/star.jpg");
		var ad = document.getElementById("img");
		ad.appendChild(img);
	</script>
</body>
</html>